package net.kucoe.grin.server;

import java.io.IOException;

/**
 * Grin server, that could be implemented or empty. Server is implemented as simple socket listener
 * thread that handles different request types.
 * 
 * @author Vitaliy Basyuk
 */
public interface GrinServer {
    
    /**
     * Starts server.
     * 
     * @param port
     * @throws IOException
     */
    void start(int port) throws IOException;
    
    /**
     * Stops server.
     * 
     * @throws IOException
     */
    void stop() throws IOException;
    
}
